package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 月度需求计划
 * </p>
 *
 * @author XUQI
 * @since 2019-05-06
 */
@TableName(value = "pms_otd_month_plan")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MonthPlan对象", description="月度需求计划")
public class MonthPlan  implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MONTH_PLAN_ID", type = IdType.UUID)
    private String monthPlanId;

    @TableField("MONTH_PLAN_CODE")
    private String monthPlanCode;

    @TableField("M1_YEAR_MONTH")
    private String m1YearMonth;

    @TableField("YEAR")
    private String year;

    @TableField("MONTH")
    private String month;

    @TableField("STATE")
    private String state;

    @TableField("PLAN_VERSION")
    private Integer planVersion = 0;

    @TableField("RELEASE_TIME")
    private Date releaseTime;

    @TableField("W1_SUM_NUM")
    private Integer w1SumNum;

    @TableField("W2_SUM_NUM")
    private Integer w2SumNum;

    @TableField("W3_SUM_NUM")
    private Integer w3SumNum;

    @TableField("W4_SUM_NUM")
    private Integer w4SumNum;

    @TableField("W5_SUM_NUM")
    private Integer w5SumNum;

    @TableField("M1_SUM_NUM")
    private Integer m1SumNum;

    @TableField("M2_SUM_NUM")
    private Integer m2SumNum;

    @TableField("M3_SUM_NUM")
    private Integer m3SumNum;

    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "最后修改人")
    @TableField(value="UPDATE_BY",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value="UPDATE_TIME",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    @TableField("VERSION")
    private Integer version;

    @TableField("IS_SEND")
    private Integer isSend;

    @TableField("IS_DEL")
    private Integer isDel;


}
